using Rioshu.Web.ViewStateHandlers;

namespace ViewStateHandlers
{
    public static class CompressorFactory
    {
        public static IStringCompressor CreateCompressor(CompressionType compressionType)
        {
            switch (compressionType) {
                case CompressionType.GZip:
                    return new GzipCompressor();
                case CompressionType.Zip:
                    return new ZipCompressor();
                case CompressionType.SevenZip:
                    return new SevenZipCompressor();
            }

            return null;
        }
    }
}